package com.df.gateway;

import com.alibaba.nacos.api.annotation.NacosInjected;
import com.df.base.other.SpringContextHelper;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;

import java.util.concurrent.CountDownLatch;

//TODO 网关，消息转发，鉴权，流量检查
// 长连接管理
//dubbo注册的时候，如果没有对外的@Service，则不会注册成功，看下具体原因
//dubbO泛化调用
@SpringBootApplication
@EnableDubbo
@Import(SpringContextHelper.class)
public class GateWayApplication {

	public static void main(String[] args) {
		SpringApplication.run(GateWayApplication.class, args);
		try {
			new CountDownLatch(1).await();
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}

}
